"""Custom deploy script"""

import json
from os.path import join
from typing import List

from ios_cov_manager.config.path import CONFIG_DIR
from ios_cov_manager.lib.cmd_util import execute_command


CONF_JSON_PATH = join(CONFIG_DIR, "user_conf.json")
with open(CONF_JSON_PATH, encoding="utf-8") as f:
    USER_CONF = json.load(f)
    CUSTOM_DEPLOY_COMMANDS: List = USER_CONF["CUSTOM_DEPLOY_COMMANDS"]
    for command in CUSTOM_DEPLOY_COMMANDS:
        execute_command(command=command)
